package 字符类型;

import java.util.Scanner;

public class 字母大小写转换 {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);

            String a = scanner.nextLine();
            char n = a.charAt(0);
            if (n>='a'&&n<='z'){
                System.out.println((char)(n-32));
            }else if (n>='A'&&n<='Z'){
                System.out.println(((char)(n+32)));
            }else {
                System.out.println(n);

            }

        }
}


